package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.AttrGroupEntity;
import com.atguigu.gulimall.product.vo.item.SpuItemAttrGroupVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 * 
 * @author ShiJieLin
 * @email ShiJieLin@gmail.com
 * @date 2022-03-29 09:39:34
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    /** 根据SPUId查询出对应的 分组及分组对应的value值
     * @param spuId
     * @return
     */
    List<SpuItemAttrGroupVo> qeruyAttrGroupWithAttrsBySpuId(@Param("spuId") Long spuId);
}
